home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part2 / 15622 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  867 b 

  1. Path: wmin.ac.uk!usenet
  2. From: Idoia Lertxundi <gsoec@wmin.ac.uk>
  3. Newsgroups: comp.lang.c
  4. Subject: Can a function return a array of pointers? a.s.a.p.
  5. Date: 20 Apr 1996 12:40:23 GMT
  6. Organization: Westminster University
  7. Message-ID: <4lalvn$536@badger.wmin.ac.uk>
  8. NNTP-Posting-Host: ux9.wmin.ac.uk
  9. Mime-Version: 1.0
  10. Content-Type: text/plain; charset=us-ascii
  11. Content-Transfer-Encoding: 7bit
  12. X-Mailer: Mozilla 1.1N (X11; I; SunOS 4.1.3_U1 sun4c)
  13. X-URL: news:comp.lang.c
  14.  
  15. My question is Can a function return a array of pointers? 
  16.  
  17. It seems that the compiler does not like the following:
  18.  
  19. static char[] *ReadCodes(FILE *fptr, char *codes_array_p[MAX_CODES], char
  20. *codes[MAX_CODES])
  21.  
  22. even [MAX_CODES] gives an error, therefore how can I represent a function
  23. returning a type array of pointers?
  24.  
  25. Answers to the group and me.
  26.  
  27. gsoec@wmin.ac.uk
  28. http://www.wmin.ac.uk/~gsoec/
  29.  
  30.